
#define SEPC_CONFIG_ID 998
enum CONFIG_EXEC_ITEM
{
  CONFIG_EXEC_ALL = 0,
  CONFIG_EXEC_IP
};

typedef struct StepInfo
{
  long value_set;
  long value_act;

}StepInfo;
typedef struct CHStatus
{
  char isON;
  char setON;
  StepInfo nowPres;
  StepInfo Value[15];
}CHStatus;
typedef struct USER_METHOD_STRUCT
{
  CHStatus CHs[6];
}USER_METHOD_DATA;

typedef struct USER_CONFIG_STRUCT
{
  unsigned int  configID;
  unsigned char PresUnit;
  unsigned char AutoDownload;
  long WaitTime;
  unsigned char StartRun;
  unsigned char AfterRun;
  unsigned char RecvAlarm;
  unsigned char AfterError;
  unsigned char LockPswd;
  unsigned char TimeHour;
  unsigned char TimeMinute;
  unsigned short DateYear;
  unsigned char DateMonth;
  unsigned char DateDay;
  unsigned char LanType;
  unsigned char LanIP[4];
  unsigned char LanNetmask[4];
  unsigned char LanGateway[4];
  USER_METHOD_DATA MethodUsing;
  USER_METHOD_DATA Method[8];
  long Password;
}USER_CONFIG_DATA;


typedef struct SYS_CONFIG_STRUCT
{
  unsigned int VersionID;
}SYS_CONFIG_DATA;

extern USER_CONFIG_DATA m_UserConfig;
extern SYS_CONFIG_DATA m_SysConfig;
extern int UserCfg_Save();
extern int UserCfg_Read();
extern int UserCfg_Init();
extern int UserCfg_Exec(unsigned char ExecItem);
extern USER_CONFIG_DATA UserCfg_Get();
extern int UserCfg_Set(USER_CONFIG_DATA cfg);
extern int InitConfig();
